package com.mydesignpattern.beijing.command.command;

import com.mydesignpattern.beijing.command.receiver.Light;

public class LightCommand extends Command {

    private Light light;

    public LightCommand(){}
    public LightCommand(Light light){
        this.light = light;
    }

    public void on(){
        light.on();
    }

    public void off(){
        light.off();
    }

}
